using UnityEditor;

namespace Mars.Lua2UnityProfiler
{

    public static class Tools
    {
        [MenuItem("Mars/Lua/AttackToLua")]
        static void AttackToLua()
        {
            //这里应该传游戏内启动的lua虚拟机，不能新创一个
            // var luaenv = new LuaEnv();
            // var script = LuaHook.GetAttachHookScript();
            // luaenv.DoString(script);
            // luaenv.Dispose();
        }

        [MenuItem("Mars/Lua/DetachLua")]
        static void DetachLua()
        {
            //这里应该传游戏内启动的lua虚拟机，不能新创一个
            // var luaenv = new LuaEnv();
            // var script = LuaHook.GetDetachHookScript();
            // luaenv.DoString(script);
            // luaenv.Dispose();
        }
    }
}
